#include <iostream>
#include <cstdlib>
#include <new>
using std::cerr;
using std::abort;
using std::cout;
using std::cin;
using std::set_new_handler;
void customNew()
{
	cerr<<"customNew a fost apelat";
	abort();
}
int main(){
	double *ptr[50];

	set_new_handler(customNew);

	for(int i=0;i<50;i++)
		{
			ptr[i]=new double[500000000];
			cout<<"ptr["<<i<<"]\n";
		}
	return 0;
}
